// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 登录 POST /login/account */
export async function signInUsingPost(body: API.UserLoginVO, options?: { [key: string]: any }) {
  return request<API.TradeResult>('/login/account', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getMessage GET /login/getMessage */
export async function getMessageUsingGet(options?: { [key: string]: any }) {
  return request<string>('/login/getMessage', {
    method: 'GET',
    ...(options || {}),
  });
}
